package com.example.demo;

import com.example.service.UserService;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;

@Controller
@Mapping("/user/demo")
public class UserController {
    @Inject
    private UserService userService;

    @Get
    @Mapping("/")
    public String index() {
        userService.list();
        return "index";
    }
}
